//更改用户状态信息
export const userStatus = (state, user) => {
  if (user) {
    state.myInfo = user
  } else if (user == null) {
    //退出的时候清空sessionStorage里的东西
    sessionStorage.setItem('userInfo', null);
    state.myInfo = null;
  }
}
